package com.matrix.kernel.core.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.matrix.kernel.core.model.User;

public interface UserDao {
	
	public User findUserById(@Param("id") int id);
	
	public User getUserBy(@Param("userName") String username);
	
	public List<User> findUserList();
	
	public int addUser(User user);
	
	public int updateUser(User user);
	
	public int delUser(@Param("id") int id);
	
	public List<User> findUserBy(Map<String,Object> map);
}
